#
# Copyright (C) 356 - 999. Asytumn Technology Co., Ltd. All rights reserved.
#

CMAKE_MINIMUM_REQUIRED(VERSION 3.15)

PROJECT(Windurb)

MESSAGE(STATUS "Running cmake version ${CMAKE_VERSION}")

OPTION(WINDURB_MSVC_USE_MT "Use MultiThreaded runtime library" ON)

IF(CMAKE_SYSTEM_NAME STREQUAL "Windows")
    ADD_DEFINITIONS(-D__INSIGHT_OS_WINDOWS__)
ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
    ADD_DEFINITIONS(-D__INSIGHT_OS_LINUX__)
ELSE()
    MESSAGE(STATUS "${CMAKE_SYSTEM_NAME} operating system is not supported")
ENDIF()

IF(WINDURB_MSVC_USE_MT)
    SET(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
ENDIF()

# Set Output Directory
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/Asgard")
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/Asgard")
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/Asgard")

ADD_SUBDIRECTORY(3rdParty)
ADD_SUBDIRECTORY(Amadeus)
ADD_SUBDIRECTORY(Asgard)
ADD_SUBDIRECTORY(Bugles)
ADD_SUBDIRECTORY(Circle)
ADD_SUBDIRECTORY(Docs)
ADD_SUBDIRECTORY(Egret)
ADD_SUBDIRECTORY(Ginkgo)
ADD_SUBDIRECTORY(Godzilla)
ADD_SUBDIRECTORY(Harbour)
ADD_SUBDIRECTORY(Hejre)
ADD_SUBDIRECTORY(Hubris)
ADD_SUBDIRECTORY(Hyacinth)
ADD_SUBDIRECTORY(Narys)
ADD_SUBDIRECTORY(Nychos)
ADD_SUBDIRECTORY(OAsIsp)
ADD_SUBDIRECTORY(Ombres)
ADD_SUBDIRECTORY(Orcinus)
ADD_SUBDIRECTORY(Origami)
ADD_SUBDIRECTORY(Oscillo)
ADD_SUBDIRECTORY(Paperclip)
ADD_SUBDIRECTORY(Riolet)
ADD_SUBDIRECTORY(Skylark)
ADD_SUBDIRECTORY(Umbrella)
ADD_SUBDIRECTORY(Vulgaris)
ADD_SUBDIRECTORY(Windurb)


